package GouZaoQi;

public class Main03_Doctor_Nurse {
    public static void main(String[] args) {
        Class03_Doctor doctor03= new Class03_Doctor(1,"许医生", "外科",'A');
        Class03_Nurse nurse03= new Class03_Nurse(2,"何护士","女人","护士科","123456");

//        当使用 System.out.println() 打印一个对象时，Java 会自动调用该对象的 toString() 方法
        System.out.println(doctor03);
        System.out.println(nurse03);
    }
}
